@layout("/common/_container.html",{js:["/assets/hx/storage/hxDateStatistics/hxDateStatistics.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">库存表管理</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <select id="queryMode" lay-filter="queryMode">
                                    <option value="mx">明细</option>
                                </select>
                            </div>
                            <div class="layui-inline">
                                <select id="stockState">
                                    <option value="">选择状态</option>
                                    <option value="正常">正常</option>
                                    <option value="集货">集货</option>
                                    <option value="冻结">冻结</option>
                                </select>
                            </div>
                            <div class="layui-inline">
                                <select id="stockUnit" lay-filter="stockUnit">
                                    <option value="kc">库存单位</option>
                                    <option value="ps">配送单位</option>
                                    <option value="cg">采购单位</option>
                                    <option value="pf">批发单位</option>
                                </select>
                            </div>

                            <div class="layui-inline">
                                <select id="customerId">
                                    <option value="">选择客户</option>
                                    @for(item in customerlist!){
                                    <option value="${item.id}">${item.customerName}</option>
                                    @}
                                </select>
                            </div>
                            <div class="layui-inline">
                                <select id="warehouseId" lay-filter="warehouseId">
                                    <option value="">选择仓库</option>
                                    @for(item in basicWarehouseList!){
                                    <option value="${item.id}">${item.warehouseName}</option>
                                    @}
                                </select>
                            </div>
                            <div class="layui-inline">
                                <select id="areaId" lay-filter="areaId">
                                    <option value="">选择库区</option>
                                </select>
                            </div>
                            <div class="layui-inline">
                                <input id="positionNumber" class="layui-input" type="text" placeholder="库位编号"/>
                            </div>
                            <div class="layui-inline">
                                <select id="positionType" lay-filter="positionType">
                                    <option value="">选择库位类型</option>
                                    <option value="拣货位">拣货位</option>
                                    <option value="存储位">存储位</option>
                                </select>
                            </div>


                            <div class="layui-inline">
                                <input id="goodsName" class="layui-input" type="text" placeholder="商品档案"/>
                                <button type="button" class="layui-btn layui-btn-primary" id="choiceGoods" style="position: absolute;right: 1px;cursor: pointer;top: 2px"><i class="layui-icon">&#xe615;</i></button>
                            </div>
                            <div class="layui-inline">
                        		<input id="goodsBigtypeId" name="goodsBigtypeId" type="hidden">
                                <input id="goodsBigtype" class="layui-input" type="text" placeholder="商品分类"/>
                                <button type="button" class="layui-btn layui-btn-primary" id="goodsType" style="position: absolute;right: 1px;cursor: pointer;top: 2px"><i class="layui-icon">&#xe615;</i></button>
                            </div>

                            <div class="layui-inline">
                                <input id="setUnit" class="layui-input" type="text" placeholder="发货客户"/>
                                <button type="button" class="layui-btn layui-btn-primary" id="choiceSetUnit" style="position: absolute;right: 1px;cursor: pointer;top: 2px"><i class="layui-icon">&#xe615;</i></button>
                            </div>

                            <div class="layui-inline">
                                <input id="condition" class="layui-input" type="text" placeholder="关键词"/>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
                                <button id="reset" class="layui-btn icon-btn layui-btn-primary"><i class="layui-icon">&#xe666;</i>重置</button>
                                <button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>导出</button>

                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="hxStorageStockTable" lay-filter="hxStorageStockTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="stockStateTpl">
    {{#  if(d.stockState === '正常'){ }}
    <span style="color: #43CF7C;font-weight: 600;">{{ d.stockState }}</span>
    {{#  } else { }}
    {{ d.stockState }}
    {{#  } }}
</script>
@}